#ifndef CTEXTURES_H
#define CTEXTURES_H
#include "CImageLoader.h"
#include <SDL_opengl.h>
#ifdef DEBUG
#include "../../logger/CLogger.h"
#endif

typedef struct
{
    int width;
    int height;
    GLuint texture;
    GLenum textureFormat;
}TXIMG;

class CTextures
{
    public:
        CTextures();
        virtual ~CTextures();
        bool loadTexture(std::string filename);
        TXIMG getTexture();
        void Cleanup();

    private:
    SDL_Surface *m_surface;
    TXIMG m_texture;

    #ifdef DEBUG
    CLogger* _logger;
    #endif
};

#endif // CTEXTURES_H
